﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="PhotoList.Web.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="Img/Style.css" type="text/css" media="all" rel="Stylesheet" rev="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <script type="text/javascript" language="javascript">
            function CheckLogin() {
                if (document.getElementById("<%=tbUserID.ClientID %>").value.length == 0) {
                    window.alert("请输入用户名");
                    return false;
                }
            }
</script>

<table border="0" cellpadding="0" cellspacing="0" id="Login">
    <tr>
        <td></td>
    </tr>
    <tr>
        <td>
            <table border="0" cellpadding="0" cellspacing="0" class="login">
                <tr>
                    <td></td>
                </tr>
                <tr>
                    <td class="uid"><asp:TextBox ID="tbUserID" runat="server" CssClass="txtBox"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="pass"><asp:TextBox ID="tbPass" runat="server" TextMode="Password" CssClass="txtBox"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:Button ID="btnLogin" runat="server" OnClick="btnLogin_Click" OnClientClick="return CheckLogin()" CssClass="submit" />
                        <input type="reset" id="reset" value="" class="reset" />
                    </td>
                </tr>
                <tr>
                    <td><asp:Label ID="lblMsg" Text="" runat="server" CssClass="message"></asp:Label></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td></td>
    </tr>
</table>
    </div>
    </form>
</body>
</html>
